
if __name__ == '__main__':
    import pymysql
    db = pymysql.connect("localhost", "root", "hijklmn", "qqspeed")
    cursor = db.cursor()
    cursor.execute("show tables")
    cursor.execute("select snap from `groups`")
    data = cursor.fetchall()

    print(data)
    cursor.close()
    db.close()